<template>
	<view class="u-flex-column">
		<view class="u-demo-block">
			<text class="u-page__item__title">时间记录</text>
			<u-cell-group>
				<u-cell
						v-for="(item,index) in timeRecordList"
						:key="index"
						:icon="item.icon"
						:title="item.title"
						:isLink="item.isLink"
						:url="item.url"
						:iconStyle="item.iconStyle">
				</u-cell>
			</u-cell-group>
		</view>
		<view class="u-demo-block">
			<text class="u-page__item__title">产量记录</text>
			<u-cell-group>
				<u-cell
						v-for="(item,index) in shiftCapacityRecordList"
						:key="index"
						:icon="item.icon"
						:title="item.title"
						:isLink="item.isLink"
						:url="item.url"
						:iconStyle="item.iconStyle">
				</u-cell>
			</u-cell-group>
		</view>
		<view class="u-demo-block">
			<text class="u-page__item__title">USM组立统计表</text>
			<u-cell-group>
				<u-cell
						v-for="(item,index) in uzlStatisticalTableList"
						:key="index"
						:icon="item.icon"
						:title="item.title"
						:isLink="item.isLink"
						:url="item.url"
						:iconStyle="item.iconStyle">
				</u-cell>
			</u-cell-group>
		</view>
		<view class="u-demo-block">
			<text class="u-page__item__title">USM半田统计表</text>
			<u-cell-group>
				<u-cell
						v-for="(item,index) in ubtStatisticalTableList"
						:key="index"
						:icon="item.icon"
						:title="item.title"
						:isLink="item.isLink"
						:url="item.url"
						:iconStyle="item.iconStyle">
				</u-cell>
			</u-cell-group>
		</view>
		<view class="u-demo-block">
			<text class="u-page__item__title">USM测定统计表</text>
			<u-cell-group>
				<u-cell
						v-for="(item,index) in ucdStatisticalTableList"
						:key="index"
						:icon="item.icon"
						:title="item.title"
						:isLink="item.isLink"
						:url="item.url"
						:iconStyle="item.iconStyle">
				</u-cell>
			</u-cell-group>
		</view>

	</view>
</template>

<script>
export default {
	name: 'my-navi',
	data() {
		return {
			timeRecordList:[
				{
					icon: "file-text-fill",
					title:"OP记录入力",
					isLink:true,
					url:'/pages/time-record-input/op-record-input',
					iconStyle:{
						color:'#FF461F'
					}
				},
				{
					icon: "tags-fill",
					title:"保全记录入力",
					isLink:true,
					url:'/pages/time-record-input/maints-record-input',
					iconStyle:{
						color:'#1685a9'
					}
				},
				{
					icon: "info-circle-fill",
					title:"异常记录入力",
					isLink:true,
					url:'/pages/time-record-input/abnormal-record-input',
					iconStyle:{
						color:'#75664d'
					}
				},
				{
					icon: "search",
					title: "查询",
					isLink: true,
					url:'/pages/time-record-timeline/time-record-timeline',
					iconStyle:{
						color:'#FF461F'
					}					
				},
				// {
				// 	icon: "search",
				// 	title: "测试",
				// 	isLink: true,
				// 	url:'/pages/ttest/ttest3',
				// 	iconStyle:{
				// 		color:'#FF461F'
				// 	}
				// }
			],
			shiftCapacityRecordList:[
				{
					icon: "file-text-fill",
					title:"产量入力",
					isLink:true,
					url:'/pages/shift-capacity-record-input/shift-capacity-record-input',
					iconStyle:{
						color:'#56004f'
					}
				},
				{
					icon: "search",
					title: "产量查询",
					isLink: true,
					url:'/pages/shift-capacity-record-timeline/shift-capacity-record-timeline',
					iconStyle:{
						color:'#e6b422'
					}					
				},
			],
			capacityRecordList:[
				{
					icon: "file-text",
					title:"入力",
					isLink:true,
					url:'',
					iconStyle:{
						color:'#2EDFA3'
					}
				},
			],
			uzlStatisticalTableList:[
				{
					icon: "share",
					title:"组立统计表入力",
					isLink:true,
					url:'/pages/U-ZL-statistial-input/U-ZL-statistial-input',
					iconStyle:{
						color:'#839b5c'
					}
				},
				{
					icon: "share-fill",
					title:"组立统计表删改",
					isLink:true,
					url:'/pages/U-ZL-statistial-input/U-ZL-statistial-timeline',
					iconStyle:{
						color:'#839b5c'
					}
				}
			],
			ubtStatisticalTableList:[
				{
					icon: "bag",
					title:"半田统计表入力",
					isLink:true,
					url:'/pages/U-DBSU-statistial-input/U-DBSU-statistial-input',
					iconStyle:{
						color:'#4d5aaf'
					}
				},
				{
					icon: "bag-fill",
					title:"半田统计表删改",
					isLink:true,
					url:'/pages/U-DBSU-statistial-input/U-DBSU-statistial-timeline',
					iconStyle:{
						color:'#4d5aaf'
					}
				}
			],
			ucdStatisticalTableList:[
				{
					icon: "shopping-cart",
					title:"测定统计表入力",
					isLink:true,
					url:'/pages/U-CD-statistial-input/U-CD-statistial-input',
					iconStyle:{
						color:'#fabf14'
					}
				},
				{
					icon: "shopping-cart-fill",
					title:"测定统计表删改",
					isLink:true,
					url:'/pages/U-CD-statistial-input/U-CD-statistial-timeline',
					iconStyle:{
						color:'#fabf14'
					}
				},
			]
		};
	},
	mounted() {
		// console.log();
		// this.getRandomTransitionMode();
	},

	methods:{
		getRandomTransitionMode(){
			return this.transitionModeList[uni.$u.random(0,this.transitionModeList.length)];
		}
	}
};
</script>

<style lang="scss" scoped>
.u-page__item__title{
	color: #12569F;
	background-color: $u-bg-color;
	padding: 15px;
	font-size: 15px;
}

</style>
